package com.fuego.creditsystemnews.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.dto.Result;
import org.example.entity.News;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 虎哥
 * @since 2021-12-22
 */
public interface INewsService extends IService<News> {

    Result queryHotNews(Integer current,Long userId);

    Result queryNewsByUserId(Integer current,Long userId);

    Result queryNewsById(Long id,Long userId);

    Result likeNews(Long id,Long userId);


    Result queryNewsOfFollow(Long max, Integer offset,Long userId);
}
